

package com.mercury.alibaba.model;

import com.mercury.alibaba.handler.SendHandler;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import java.util.Collection;
import java.util.Map;

/**
 * 发送完成事件.
 *
 * @author mercury
 */
@Getter
@ToString
@EqualsAndHashCode(callSuper = true)
public class SmsSendFinallyEvent extends ApplicationEvent {


	/**
	 * 消息id
	 */
	private final String msgId;

	/**
	 * 发送渠道.
	 */
	private final String sendChannel;

	/**
	 * 电话号码列表.
	 */
	private final Collection<String> phones;

	/**
	 * 类型.
	 */
	private final String type;

	/**
	 * 参数列表.
	 */
	private final Map<String, String> params;

	public SmsSendFinallyEvent(SendHandler source, String sendChannel, Collection<String> phones, String msgId, String type, Map<String, String> params) {
		super(source);
		this.msgId = msgId;
		this.sendChannel = sendChannel;
		this.phones = phones;
		this.type = type;
		this.params = params;
	}
}
